//
//  IGImageToken.h
//  jingdongfang
//
//  Created by BOE on 2017/9/12.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGBaseResp.h"
#import "IGBaseRequest.h"

/** 不同的图片上传到不同的文件夹下 */
typedef NS_ENUM(NSInteger, IGAliYunFolderType) {
    ///>作品图片上传的路径 banner
    IGAliYunFolderTypeBanner = 1,
    ///>圈子话题图片上传的路径 圈子 - circle
    IGAliYunFolderTypeCircle = 2,
    ///>作品图片上传的路径 作品 - product
    IGAliYunFolderTypeProduct = 3,
    ///>作品图片上传的路径 文章 - special
    IGAliYunFolderTypeArticle = 4,
    ///>作品图片上传的路径 用户(头像) - user
    IGAliYunFolderTypeUser = 5,
    ///>作品图片上传的路径 系统 - sys
    IGAliYunFolderTypeSystem = 6,
    ///>私信图片上传路径 私信 - privateMsg
    IGAliYunFolderTypeSiXin = 7,
    ///>申请和拒绝退款上传图片路径 退款 - refund
    IGAliYunFolderTypeRefund = 8,
    ///>画单截图
    IGAliYunFolderTypeDrawList = 9
};

@interface IGImageToken : IGBaseModel

@property (nonatomic, copy) NSString *bucketName;
@property (nonatomic, copy) NSString *endpoint;
@property (nonatomic, copy) NSString *accessKeyId;
@property (nonatomic, copy) NSString *accessKeySecret;
@property (nonatomic, copy) NSString *securityToken;
@property (nonatomic, copy) NSString *expiration;           //2017-12-06 11:42:31

@property (nonatomic, copy) NSString *bucketPoint;

///>上传文件夹
@property (nonatomic, copy) NSString *bucketPath;
- (void)configBucketPath:(IGAliYunFolderType)type;

@end

@protocol IGImageToken <NSObject>

@end

@interface IGImageTokenApi : IGBaseRequest

@end

@interface IGImageTokenModel : IGBaseModel
    
@property (nonatomic, copy) IGImageToken *imageToken;

@end

@interface IGImageTokenResp : IGBaseResp
    
@property (nonatomic, copy) IGImageTokenModel *data;

@end
